package com.imm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.imm.common.Result;
import com.imm.dto.DishDTO;
import com.imm.pojo.Dish;

import java.util.List;

public interface IDishService extends IService<Dish> {
    Result<Page<DishDTO>> pageDish(int page, int pageSize, String name);

    Result<String> insert(DishDTO dishDTO);

    Result<DishDTO> findOne(Long id);

    Result<String> updateOne(DishDTO dishDTO);

    Result<String> changeStatus(Integer status, Long ...ids);

    Result<String> delete(Long[] ids);

    Result<List<DishDTO>> listDish(DishDTO dishDTO);
}
